//
//  HomePageUserInfoYearCollectionViewCell.m
//  ShowYork
//
//  Created by hxh on 2020/11/28.
//  Copyright © 2020 hxh. All rights reserved.
//

#import "HomePageUserInfoYearCell.h"

@interface HomePageUserInfoYearCell ()
@property (nonatomic,strong)UILabel *yearLb;
@end

@implementation HomePageUserInfoYearCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.yearLb = [[UILabel alloc]init];
        self.yearLb.textColor = [UIColor whiteColor];
        self.yearLb.font = font(28);
        [self addSubview:self.yearLb];
        [self.yearLb mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).offset(12);
            make.centerY.equalTo(self);
        }];
    }
    return self;
}

- (void)setModel:(HomePageItemModel *)model{
    _model = model;
    self.yearLb.text = model.yearStr;
}
@end
